#ifndef PSEUDOCONNECTION_H_
#define PSEUDOCONNECTION_H_

#include "HTTPConnection.h"

class PseudoConnection: public HTTPConnection {
public:
	PseudoConnection(HTTPConnection* realConn, string loc);
	virtual ~PseudoConnection();
	virtual int
	sendResponse(unsigned short flags, const char* buffer = NULL, unsigned int bufferSize = 0, unsigned int length = 0);
	virtual bool acceptsType(string type);
	virtual bool passesAuth(string userPass);
	string getContent() {
		return content;
	}

private:
	string content;
	HTTPConnection* conn;
};

#endif /* PSEUDOCONNECTION_H_ */
